home *** CD-ROM | disk | FTP | other *** search
/ GEGA 010 / GEGA010.iso / Mods / Doom 3 / BloodyScreme / bloodymess.pk4 / def / weapon_rocketlauncher.def < prev    next >
Text File  |  2004-08-03  |  9KB  |  213 lines

  1. /***********************************************************************
  2.  
  3.     weapon_rocketlauncher.def
  4.  
  5. ***********************************************************************/
  6.  
  7. export fred {
  8.     // View Model Rocket Launcher
  9.     options -prefix RL_ -keep barrel -keep flash -rename origin blah -rename barrel2 barrel -parent barrel RLBODY -parent flash RLBODY
  10.  
  11.     mesh    models/weapons/rocketlauncher/cycles/idle.mb -rotate 90 -dest models/md5/weapons/rocketlauncher_view/viewrocketlauncher
  12.     anim    models/weapons/rocketlauncher/cycles/raise.mb -rotate 90 -dest models/md5/weapons/rocketlauncher_view/raise
  13.     anim    models/weapons/rocketlauncher/cycles/idle.mb -rotate 90 -dest models/md5/weapons/rocketlauncher_view/idle
  14.     anim    models/weapons/rocketlauncher/cycles/fire.mb -rotate 90 -dest models/md5/weapons/rocketlauncher_view/fire
  15.     anim    models/weapons/rocketlauncher/cycles/reload.mb -rotate 90 -dest models/md5/weapons/rocketlauncher_view/reload
  16.     anim    models/weapons/rocketlauncher/cycles/lower.mb -rotate 90 -dest models/md5/weapons/rocketlauncher_view/lower
  17.  
  18.     // world model Rocket Launcher
  19.     options -prefix PLAYER_RL -keep barrel _ATTACHER flash eject -parent eject BODY -parent flash BODY -rename barrel2 barrel -rename _ATTACHER origin -parent barrel BODY -clearorigin
  20.     addoptions -skipmesh PLAYER_rshell1
  21.     addoptions -skipmesh PLAYER_rshell2
  22.     addoptions -skipmesh PLAYER_rshell3
  23.     addoptions -skipmesh PLAYER_rshell4
  24.     addoptions -skipmesh PLAYER_reloader1
  25.     addoptions -skipmesh PLAYER_handle
  26.     addoptions -skipmesh PLAYER_aimer
  27.     addoptions -skipmesh PLAYER_body
  28.  
  29.     mesh    models/characters/player/mocap/rocketlauncher_aim.mb -dest models/md5/weapons/rocketlauncher_world/worldrocketlauncher
  30.     //anim    models/characters/player/mocap/rocketlauncher_aim.mb -dest models/md5/weapons/rocketlauncher_world/rocketlauncher_aim
  31.     anim    models/characters/male_npc/cycles/tweakedplayermoves/rocketlauncher_aim.mb -dest models/md5/weapons/rocketlauncher_world/rocketlauncher_aim
  32.  
  33.     //anim    models/characters/player/mocap/rocketlauncher_fire.mb -dest models/md5/weapons/rocketlauncher_world/rocketlauncher_fire
  34. }
  35.  
  36. entityDef weapon_rocketlauncher {
  37.     "editor_color"                ".3 .3 1"
  38.     "editor_mins"                "-16 -16 0"
  39.     "editor_maxs"                "16 16 32"
  40.     "editor_usage"                "Rocket Launcher"
  41.     "editor_rotatable"            "1"
  42.  
  43.     "spawnclass"                "idItem"
  44.     "size"                        "32 32 32"
  45.     "model"                     "models/weapons/rocketlauncher/w_rocketlauncher.lwo"
  46.     "model_view"                 "viewmodel_rocketlauncher"
  47.     "model_world"                 "worldmodel_rocketlauncher"
  48.     "joint_attach"                "RL_ATTACHER"
  49.     "def_dropItem"                "moveable_item_rocketlauncher"
  50.  
  51.     "inv_name"                    "Rocket Launcher"
  52.     "inv_weapon"                "weapon_rocketlauncher"
  53.     "inv_ammo_rockets"            "5"
  54.     "inv_item"                    "5"
  55.     "icon"                        "guis/assets/hud/wpn_6"
  56.  
  57.     "hide_time"                    "0.3"                // time to hide weapon when talking to npcs or looking at guis
  58.     "hide_distance"                "-20"                // distance to offset weapon when talking to npcs or looking at guis
  59.  
  60.     "weapon_scriptobject"        "weapon_rocketlauncher"
  61.     "def_projectile"            "projectile_rocket"
  62.     "ammoType"                    "ammo_rockets"
  63.     "ammoRequired"                "1"
  64.     "clipSize"                    "5"
  65.     "lowAmmo"                    "1"
  66.     "mtr_flashShader"            "muzzleflash"
  67.     "flashColor"                "1 0.8 0.4"
  68.     "flashRadius"                "600"
  69.     "silent_fire"                "0"
  70.     "recoilTime"                "325"
  71.     "recoilAngles"                "-1 0 0"
  72.  
  73.     "weaponAngleOffsetAverages" "15"
  74.     "weaponAngleOffsetScale"     ".5"
  75.     "weaponAngleOffsetMax"        "50"
  76.     "weaponOffsetTime"            "500"
  77.     "weaponOffsetScale"            "0.005"
  78.  
  79.     //"smoke_muzzle"            "rocketmuzzle.prt"
  80.  
  81.     "snd_acquire"                "sound_weapon_acquire"
  82.     "snd_respawn"                "sound_weapon_respawn"
  83.     
  84.     "skin_1"                    "models/weapons/0rox.skin"
  85.     "skin_2"                    "models/weapons/1rox.skin"
  86.     "skin_3"                    "models/weapons/2rox.skin"
  87.     "skin_4"                    "models/weapons/3rox.skin"
  88.     "skin_5"                    "models/weapons/4rox.skin"
  89.     "skin_6"                    "models/weapons/5rox.skin"
  90.     
  91.     "skin_invisible"            "skins/rocket_invis"
  92.     
  93.     "spread"                    "1"
  94. }
  95.  
  96. entityDef moveable_item_rocketlauncher {
  97.     "inherit"                    "weapon_rocketlauncher"
  98.     "spawnclass"                "idMoveableItem"
  99.     "density"                    "0.05"
  100.     "friction"                    "0.2"
  101.     "bouncyness"                "0"
  102. }
  103.  
  104. model worldmodel_rocketlauncher {
  105.     mesh                        models/md5/weapons/rocketlauncher_world/worldrocketlauncher.md5mesh
  106.  
  107.     anim raise                     models/md5/weapons/rocketlauncher_world/rocketlauncher_aim.md5anim
  108.     anim idle                     models/md5/weapons/rocketlauncher_world/rocketlauncher_aim.md5anim
  109.     anim aim                    models/md5/weapons/rocketlauncher_world/rocketlauncher_aim.md5anim
  110.     anim fire                    models/md5/weapons/rocketlauncher_world/rocketlauncher_aim.md5anim
  111.     anim reload                    models/md5/weapons/rocketlauncher_world/rocketlauncher_aim.md5anim        
  112.     anim noammo                    models/md5/weapons/rocketlauncher_world/rocketlauncher_aim.md5anim
  113.     anim putaway                models/md5/weapons/rocketlauncher_world/rocketlauncher_aim.md5anim
  114. }
  115.  
  116. model viewmodel_rocketlauncher {
  117.     mesh                         models/md5/weapons/rocketlauncher_view/viewrocketlauncher.md5mesh
  118.     offset                        ( -6 -3 -60 )
  119.  
  120.     anim raise                     models/md5/weapons/rocketlauncher_view/raise.md5anim {
  121.         frame 1                    sound_weapon player_rocketlauncher_raise
  122.     }
  123.     anim idle                     models/md5/weapons/rocketlauncher_view/idle.md5anim
  124.     anim fire                     models/md5/weapons/rocketlauncher_view/fire.md5anim {
  125.         frame 1                    sound_weapon player_rocketlauncher_fire
  126.     }
  127.     anim reload                 models/md5/weapons/rocketlauncher_view/reload.md5anim {
  128.         frame 1                    sound_weapon player_rocketlauncher_reload
  129.     }
  130.     anim putaway                 models/md5/weapons/rocketlauncher_view/lower.md5anim
  131. }
  132.  
  133. entityDef projectile_rocket {
  134.     "spawnclass"                "idProjectile"
  135.     "mins"                        "-3 -3 -6"
  136.     "maxs"                        "3 3 6"
  137.     "cone"                        "3"
  138.     "model"                     "models/weapons/rocketlauncher/rocket.lwo"
  139.  
  140.     "def_damage"                "damage_rocketDirect"
  141.     "def_splash_damage"            "damage_rocketSplash"
  142.  
  143.     "launchFromBarrel"            "1"                    // launch from barrel
  144.     "health"                    "5"                    // amount of damage projectile can take if damaged (0 means it can't be destroyed)
  145.     "velocity"                    "900 0 0"            // how fast the projectile leaves the gun (or distance if fuse is 0)
  146.     "angular_velocity"            "0 0 0"                // how the projectile is rotating when it leaves the gun
  147.     "thrust"                    "0"                    // the rate of acceleration (always in the direction of the projectiles model)
  148.     "thrust_start"                "0"                    // when to start accelerating
  149.     "thrust_end"                "4"                    // when to stop accelerating
  150.     "linear_friction"            "0"                    // "air" friction
  151.     "angular_friction"            "0"
  152.     "contact_friction"            "0"
  153.     "bounce"                    "0"                    // how much speed a projectile retains when it bounces off of objects (coefficient of restitution).  0 means no bounce.
  154.     "mass"                        "300"
  155.     "gravity"                    "0"                    // how much gravity affects the trajectory.  gravity direction is same as the entity that fired it.
  156.     "fuse"                        "10"                // how long before the projectile is removed or self-detonates.  Use 0 for beam weapons (velocity == distance).
  157.  
  158.     "detonate_on_fuse"            "0"                    // whether projectile should detonate when it's fuse runs out
  159.     "detonate_on_death"            "1"                    // whether projectile should detonate when it's "killed" (health runs out)
  160.     "detonate_on_world"            "1"                    // whether projectile should detonate when it hits an obstacle
  161.     "detonate_on_actor"            "1"                    // whether projectile should detonate when it hits a character in the game
  162.  
  163.     "impact_damage_effect"        "1"                    // whether projectile causes blood splats from characters that bleed
  164.     "impact_gib"                "1"                    // whether projectile can gib a character or not (for example: bullets don't gib, but rockets do)
  165.                                 
  166.     "mtr_detonate"                "textures/decals/ballburn01"
  167.     "decal_size"                "300"
  168.  
  169.     "smoke_fly"                    "rockettrail.prt"        // particle effect while in the air
  170.     // parametric particles -- temp
  171.     "model_detonate"            "rocketExplosion.prt"
  172.     "smoke_detonate"            ""                        // particle effect when detonates
  173.     "smoke_residue"                ""                        // particle effect while in the air
  174.     "smoke_bounce"                ""
  175.     "smoke_fuse"                ""
  176.  
  177.     "debris_count"                "6"
  178.     "def_debris"                "debris_largeshrapnel"
  179.     "def_shrapnel"                "debris_shrapnel"
  180.     
  181.     "mtr_light_shader"            ""
  182.     "light_color"                "1 0.8 0.4"
  183.     "light_radius"                "800"
  184.     "light_offset"                "0 0 0"
  185.  
  186.     "mtr_explode_light_shader"    "muzzleflash"
  187.     "explode_light_color"        "2 1.6 0.8"
  188.     "explode_light_radius"        "640"
  189.     "explode_light_fadetime"    "0.5"
  190.  
  191.     "snd_fly"                    "rocket_flight"                    // sound effect while in the air
  192.     "snd_explode"                "rocket_impact"
  193. }
  194.  
  195. entityDef damage_rocketDirect {
  196.     "damage"                    "170"
  197.     "push"                        "1000"
  198.     "mtr_wound_flesh"            "textures/decals/hurt02"
  199.     "mtr_splat_flesh"            ""
  200.     "gib"                        "1"
  201.     "smoke_wound_flesh"            "bloodwound.prt"
  202. }
  203.  
  204. entityDef damage_rocketSplash {
  205.     "damage"                    "150"
  206.     "radius"                    "175" //changed by Tim 6-22-04 from 132
  207.     "knockback"                    "80"
  208.     "push"                        "10000"
  209.     "attackerDamageScale"        "0.2"
  210.     "attackerPushScale"            "0.2"
  211.     "gib"                        "0"
  212. }
  213.